package top.ywlog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: Durian
 * @date: 2021/1/30 11:37
 * @description: 页面跳转控制器
 */
@Controller
@RequestMapping("/page")
public class IndexController
{
    @GetMapping("/{pageName}")
    public String index(@PathVariable("pageName") String pageName)
    {
        return pageName;
    }
}
